#ifndef __IRC_CHANNEL
#define __IRC_CHANNEL

#include <stdlib.h>
#include <string.h>

#ifndef BOOL
#define BOOL int
#define TRUE 1
#define FALSE 0
#endif

typedef struct _irc_channel {
	char				*name;
	struct _irc_channel *prev;
	struct _irc_channel *next;
} irc_channel_t;

irc_channel_t *init_channel();
void free_channel(irc_channel_t *);

BOOL contains_channel(irc_channel_t *, char *);

irc_channel_t *find_first(irc_channel_t *);
irc_channel_t *find_last(irc_channel_t *);

void add_channel(irc_channel_t *, char *);
void remove_channel(irc_channel_t *, char *);

#endif
